package com.xnyzc.lhy.order.feign.message;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.order.entity.user.message.OaSysMessage;
import com.xnyzc.lhy.order.feign.message.follback.FeignMessageServiceFollback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "${feign.applicationName.order}", fallback = FeignMessageServiceFollback.class)
public interface FeignMessageService {

    @PostMapping(value = "oa/userMessage/saveMessage")
    Rv saveMessage(@RequestBody OaSysMessage oaSysMessage);

}
